//
//  SpiteView.h
//  制作图标
//
//  Created by mac on 2017/8/28.
//  Copyright © 2017年 yangweiwei. All rights reserved.
//

#import <UIKit/UIKit.h>

//CGRect rectScale(CGRect rc, float xs, float ys)
//{
//    rc.size = CGSizeMake(rc.size.width*xs, rc.size.height*ys);
//    
//    return rc;
//}

@interface SpiteView : UIView<UIGestureRecognizerDelegate>{
    CGPoint			touchOffset;
    bool			isTransforming;
    CGAffineTransform	startTransform;
    
    CGRect      oldFrame;
    CGPoint     oldPoint;
    CGPoint     begainPoint;
}
@property (nonatomic, strong) UIImageView*	imageView;
@property (nonatomic, strong) UIImageView*	rotateImageView;
@property (nonatomic, strong) UIImageView*	cancelImageView;

@property(nonatomic) bool			isEditting;
- (instancetype)initWithFrame:(CGRect)frame withImage:(UIImage *)image;
@end
